#!/bin/sh

function test {
    echo "Testing" $1;
#    if (./$1 1>&-); then
    if (./$1); then
        echo " -> OK";
    else
        echo " -> ERROR";
    fi
}

for i in $@; do
    test "$i"
done
